<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //两种定义方式
    let arr = new Array(1,2,3,4,"哈哈哈");
    console.log(arr[1]);
    console.log(arr[4]);

    let arr2 = [6,7,8,9,0,"呵呵呵"];
    console.log(arr2[0]);
    console.log(arr2[5]);
    console.log(arr2[6]);//undefined
</script>
</html>